<?php
require_once(OC::$SERVERROOT . "/apps/reports/lib/helper.php");
require_once(OC::$SERVERROOT . "/apps/reports/lib/reports.php");

if (!PFactory::isMasterUser()) {
   echo '您无权访问该资源';
   exit();
}

$model = new PReportsModelReports();
list($jobList, $pagination) = $model->getJobList();
$tmpl = new OCP\Template('reports', 'part.reports.joblist', '');
$tmpl->assign('jobList', $jobList);
$tmpl->assign('pagination', $pagination);
$tmpl->printpage();